package org.example.lottery_system.service.enums;

import lombok.AllArgsConstructor;
import lombok.Data;


@AllArgsConstructor
public enum UserIDentityEnum {

    ADMIN("管理员"),
    NOMAL("普通用户");
    private String message;
    public static UserIDentityEnum forname(String name){
        for (UserIDentityEnum userIDentityEnum : UserIDentityEnum.values()){
            if (userIDentityEnum.name().equalsIgnoreCase(name)){
                return userIDentityEnum;
            }
        }
        return null;
    }
}
